import $http from './index'

export const getCourseList= (data)=>{
  return $http.get('http://jsonplaceholder.typicode.com/posts',data)
}

const getUserInfo = $http.get('http://jsonplaceholder.typicode.com/posts')
// export const login = data => http.get('/api/posts', data)
// export const login = (data) => http.get('/api/posts', data)
export const login = (data) => {
  return $http.get('http://jsonplaceholder.typicode.com/posts', data)
}

export { getUserInfo }
